<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Login</title>
<style type="text/css">
body {margin:0 auto;text-align:center;}
form.login {margin: 200px auto;width:200px;text-align:left;}
form.login fieldset {-moz-border-radius:8px;padding:12px;}
form.login label {display:block;font-size:12px;line-height:20px;}
input.button{font-size:14px;border:1px solid gray;width:100px;}
.login .button {float:right;margin-top:12px;height:24px;}
input.text {border:1px solid gray;height:34px;font-size:20px;padding:2px;width:200px;-moz-border-radius:4px;}
.errmsg {color:red;text-align:center;margin:0 auto;}
</style>
<script type="text/javascript">
window.onload=function(){document.getElementById('username').focus();}
</script>
</head>
<body>
<form class="login" action="/index/login" method="post">
    <fieldset>
        <legend><?=_('登录')?></legend>
        <?if(isset($this->msg)):?><label class="errmsg"><?=$this->msg?></label><?endif;?>
        <label><?=_('用户')?>: <input type="text" name="username" id="username" class="text" autoComplete="off" /></label>
        <label><?=_('密码')?>: <input type="password" name="password" class="text" /></label>
        <label><input type="submit" name="submit" value="验证" class="button" /></label>
    </fieldset>
</form>
</body>
</html>
